package com.lizx.persional.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by IBM on 2017/4/25.
 */
@Component
@ConfigurationProperties(prefix = "enrollment.cors")
public class CorsProperties {

    private String allowedOrigin;

    public CorsProperties() {
    }

    @Override
    public String toString() {
        return "CorsProperties{" +
                "allowedOrigin='" + allowedOrigin + '\'' +
                '}';
    }

    public String getAllowedOrigin() {
        return allowedOrigin;
    }

    public void setAllowedOrigin(String allowedOrigin) {
        this.allowedOrigin = allowedOrigin;
    }
}
